function [ maxMat ] = correctZeroIndeces( maxMat )
%Replaces zero pixel indeces with proper pixel number

zeroIndeces = find(maxMat(:, 1) == 0);

for i = 1:length(zeroIndeces)
    
    maxMat(zeroIndeces(i), 1) = zeroIndeces(i);

end

end

